import { IsNotExistsRule } from '@/auth/rules/is-not-exisis.rule';
import { IsNotEmpty } from 'class-validator';
export class CreateProjectDto {
  @IsNotEmpty({ message: '项目名字不能为空' })
  @IsNotExistsRule('project', {
    message: '该项目名字已经被输入过了',
  })
  name: string;
}
